package com.chris.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Date;

public class loanAll {
    @JSONField(name = "journal_title")
    private String journal_title;
    @JSONField(name = "year")
    private int year;
    @JSONField(name = "volume")
    private int volume;
    @JSONField(name = "issue")
    private int issue;
    @JSONField(name = "borrow_time")
    private Date borrow_time;
    @JSONField(name = "due_time")
    private Date due_time;
    @JSONField(name = "returned")
    private int returned;
    @JSONField(name = "return_time")
    private Date return_time;
    @JSONField(name = "journal_id")
    private int journal_id;

    public loanAll() {
    }

    public Date getDue_time() {
        return due_time;
    }

    public Date getReturn_time() {
        return return_time;
    }

    public int getJournal_id() {
        return journal_id;
    }

    public String getJournal_title() {
        return journal_title;
    }

    public int getYear() {
        return year;
    }

    public int getVolume() {
        return volume;
    }

    public int getIssue() {
        return issue;
    }

    public Date getBorrow_time() {
        return borrow_time;
    }

    public int getReturned() {
        return returned;
    }

    public loanAll(String journal_title, int year, int volume, int issue, Date borrow_time, Date due_time, int returned, Date return_time, int journal_id) {
        this.journal_title = journal_title;
        this.year = year;
        this.volume = volume;
        this.issue = issue;
        this.borrow_time = borrow_time;
        this.due_time = due_time;
        this.returned = returned;
        this.return_time = return_time;
        this.journal_id = journal_id;
    }

    @Override
    public String toString() {
        return "loanAll{" +
                "journal_title='" + journal_title + '\'' +
                ", year=" + year +
                ", volume=" + volume +
                ", issue=" + issue +
                ", borrow_time=" + borrow_time +
                ", due_time=" + due_time +
                ", returned=" + returned +
                ", return_time=" + return_time +
                ", journal_id=" + journal_id +
                '}';
    }
}
